package com.guchenbo.example.generic;

/**
 * @Author penglai
 * @Date 2017/3/30.
 */
public class MyCompare implements Comparable<String> {

    private static boolean b = true;

    @Override
    public int compareTo(String o) {
        return 0;
    }

    public static void main(String[] args) {
        System.out.println();

        Thread thread = new Thread() {
            @Override
            public void run() {
                while (b) {
                    System.out.println(b);
                }
            }
        };
        thread.start();
        b = false;
    }
}
